<template>
	<view class="content">
		<nav-bar title='平台服务' black bgColor="rgba(255,255,255,0)" titleColor="#333333"></nav-bar>
		<view class="head-box">
			<view class="left">
				<u-image src="https://item.techolic.cn/hjf/Public/appimg/icon_contact_usbg.png" width="166rpx" height="118rpx"></u-image>
			</view>
			<view class="right">
				<u-image src="https://item.techolic.cn/hjf/Public/appimg/icon_roboit.png" width="198rpx" height="146rpx"></u-image>
			</view>
			
		</view>
		<view class="item-box">
			<view class="title">
				添加客服
			</view>
			<view class="item">
				<view class="ewm-box">
					<u-image :show-menu-by-longpress="true" :src="images" width="240rpx" height="240rpx"></u-image>
				</view>
				<view class="button">
					长按图片保存相册
				</view>
				<view class="tips">
					长按图片保存二维码到相册</br>
					微信扫码添加【给钱花】客服
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	const app = getApp();
	export default {
		data() {
			return {
				images:'',
			}
		},
		onLoad() {
			let that = this;
			app.globalData.index_login = 1;
			app.login();
			that.get_data();
				
		},
		methods: {
			get_data(){
				var _this = this;
				
				app._get('user/get_service', {
				}, function(res) {
					_this.images = res.images;
				});
			},
		}
	}
</script>

<style lang="less">
	page {
		background-image: url('https://item.techolic.cn/hjf/Public/appimg/person_bg.png');
		background-size: cover;
		background-repeat: no-repeat;
		background-position: center center;
	}

	.content {
		width: 750rpx;
		height: auto;
		padding-bottom: 160rpx;
		.head-box{
			height: 160rpx;
			margin: 30rpx 50rpx 0;
			position: relative;
			.left{
				.u-image{
					position: absolute;
					left: 40rpx;
					bottom: 0;
				}
			}
			.right{
			.u-image{
				position: absolute;
				right: 0;
				bottom: 0;
			}}
		}
		.item-box{
			margin: 0 32rpx;
			padding-bottom: 2rpx;
			background: #fc9860;
			border-radius: 24rpx;
			.title{
				padding: 18rpx 32rpx;
				font-size:32rpx ;
				color: #ffffff;
			}
			.item{
				margin: 4rpx;
				padding-bottom: 10rpx;
				background-color: #ffffff;
				border-radius: 24rpx;
				text-align: center;
				.ewm-box{
					margin: 0 auto;
					width: 240rpx;
					height: 240rpx;
				}
				.button{
					width: 282rpx;
					height: 64rpx;
					margin: 20rpx auto;
					line-height: 64rpx;
					font-size: 28rpx;
					font-weight: bold;
					background-color: #fc9860;
					color: #ffffff;
					border-radius: 34rpx;
				}
				.tips{
					font-size: 24rpx;
					color: rgba(#1E182F,0.5);
				}
			}
		}
	}
</style>
